﻿@model IEnumerable<InformaticaDiary.Common.SearchResult>
@{
    var grid = new WebGrid(Model, defaultSort: "sPetitioner");
}
<div id="gridContent">
@grid.GetHtml(
                selectedRowStyle: "webgrid-selected-row",
                tableStyle: "gridTable",
                headerStyle: "gridHead",
                footerStyle: "gridFooter",
                rowStyle: "gridRow",
                alternatingRowStyle: "gridAltRow",

                mode: WebGridPagerModes.All,

                columns: grid.Columns(
                grid.Column("", format: @<text>@Html.ActionLink("a", "CaseItem", "Result", new { id = item.CaseDetailsID }, new { @class = "imgLink" })</text>),
                grid.Column("sCaseType", header: "Case Type", canSort: false),
                grid.Column("sCaseNoYear", header: "CaseNo/Year ", canSort: false),
                grid.Column("sPetitioner", header: "Petitioner", canSort: false),
                grid.Column("sRespondant", header: "Respondant", canSort: false)

                )
          )
   @* @grid.GetHtml(tableStyle: "webGrid",
            headerStyle: "header",
            alternatingRowStyle: "alt",
            selectedRowStyle: "select",
            columns: grid.Columns(
             grid.Column("", format: @<text>@Html.ActionLink("a", "CaseItem", "Result", new { id = item.CaseDetailsID }, new { @class = "imgLink" })</text>),
             grid.Column("sCaseType", header: "Case Type", canSort: false),
                grid.Column("sCaseNoYear", header: "CaseNo/Year ", canSort: false),
                grid.Column("sPetitioner", header: "Petitioner", canSort: false),
                grid.Column("sRespondant", header: "Respondant", canSort: false)
     ))*@
</div>
